home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: chang.unx.sas.com!walker
- From: walker@chang.unx.sas.com (Doug Walker)
- Subject: Re: Shared library open and close functions
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <DMvCKp.MD4@unx.sas.com>
- Date: Fri, 16 Feb 1996 12:41:13 GMT
- X-Nntp-Posting-Host: chang.unx.sas.com
- References: <510.6619T1238T1638@Th0r.foo.bar>
- Organization: SAS Institute Inc.
-
- In article <510.6619T1238T1638@Th0r.foo.bar>,
- Christopher Naas <christon> wrote:
- >How do I add functions to a shared library that are called the first time the
- >library is opened and when the library is removed from memory?
- >
- >I want one function that is called the first time the library is opened, and
- >one function that is called when the library is closed by the last user and it
- >is flushed from memory.
- >
- >I use SAS/C.
-
- In version 6.50, you can create a __UserLibInit and __UserLibTerm function and
- they will be automatically called. Check out your Library Reference Manual for
- more details.
-
- --
- ***** / walker@unx.sas.com
- *|_o_o|\\ Doug Walker< BIX, Portal: djwalker
- *|. o.| || \ AOL: weissblau
- | o |//
- ======
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-
-